package com.Rpc远程调用简单版.server;

import java.util.concurrent.ConcurrentHashMap;

public class ServiceRegister {

    static ConcurrentHashMap<String,Class> concurrentHashMap = new ConcurrentHashMap<>();


    public static Class lookFor(String key){
        return  concurrentHashMap.get(key);
    }



    public static void register(String key,Class val){
        concurrentHashMap.put(key,val);
    }



}
